package com.czy.workflow.core.context;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by admin on 2019/8/31.
 */

@Component
@ConfigurationProperties(prefix = "flow")
public class FlowConfig {

    /**
     * 流程图及流转数据存储方式
     */
    private String store = "json";

    /**
     * 是否启用多线程
     * 使用线程调用执行单元
     */
    private boolean multiThread = true;

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public boolean isMultiThread() {
        return multiThread;
    }

    public void setMultiThread(boolean multiThread) {
        this.multiThread = multiThread;
    }
}
